const mdImg = require('../../modules/mdImg')

module.exports = (req, res) => {
  mdImg.saveImg(req).then(suc => {
    return res.status(200).json({url: suc, code: 200})
  }).catch(err => {
    return res.status(200).json({msg: err, code: 400})
  })
}